import { request } from '@/utils/request'
// import { LoginInfo } from '@/typings/login'

export function fetchLogin(data: any) {
  return request.post('/user/login', data)
}

// 获取当前登录用户信息
export async function fetchUserInfo(params: any) {
  return request.get('/user/info', { params })
}

// 用户列表
export function fetchUserList(params: any) {
  return request.get('/user/list', { params })
}
